Make sdl event loop blocking