SDL2 compatibility fixes
Allow setting the render thread's priority