fix cannot compile with sdl-1.2 on PC