SDL2 fixes

These are some fixes for some problems we found with ioquake3's SDL2 implementation when we were implementing SDL2 support for [Unvanquished](https://github.com/Unvanquished/Unvanquished/)