Fixed compilation without HAVE_VIDEOGFX or HAVE_SDL.