Fixed player locked in SP

Fixed an issue where the player is locked at a position when starting a map (e.g, on map hoth2), fixed compiling on linux and removed some compiler warnings which should be safe on all platforms/compilers.

Thanks for your work on OpenJK