Fix building qt and sdl versions