SDL2 support fix