Fixed compilation for sdl