Compilation fix for DRAW_LAYER_DEBUG mode