now compiles with sdl.