Fixing sdl support, to be squashed