Fix crashlog path…
Initial SDL2 implementation

Partially based on ioquake3's sdl2 branch
daemonmap still doesn't compile
the mouse cursor sometimes isn't hidden
mouse movement input while in game is broken
tons of cleanup needed in cmake, etc
Fix console text input crash
Use proper UTF8 SDL text input
Allow compilation with external SDL2.
Ensure that libpthread is linked where needed.
Only explicitly create an OpenGL 3.x context if r_glCoreProfile or r_glDebugProfile are set

This matches the previous custom code
Request hardware accelerated OpenGL
Fix compilation on Unix-type systems.
Tell travis to ignore the sdl2 branch for now.
Fix initial value of com_minimized
Fix UI module text input
Fully initialize the SDL audio buffer every time

This is no longer done in SDL2, and not filling the entire buffer may cause audio issues
Set SDL_STATIC and DIRECTX options in the CmakeLists.txt
Improve Q_UTF8_Store and Q_UTF8_Unstore

This way they don't depend on being fed a char array of at least sizeof( int ) bytes
Send character events as a packed int instead of a char array
Increase the value of s_mixahead

We get audio drops with a lower value
Merge branch 'master' into sdl2
Fix daemonmap compilation
Fix cmake option name

this caused windows builds to fail to link