fix compilation with sdl 1.2