SDL: port to SDL2