Merge pull request #64 from kkthx/master

mod ui: fixes #344 tricheckbox improvement
*nix: write crashlog.txt again - merged from ioq3, 	more precise error
output refs #353
mod: WP_MEDKIT animation fix
game: clean up & formattings (g_fireteam.c)
mod: hello KA-BAR refs #349 - tu NQ!
mod: missing weap file refs #349
game: use switch in g_combat.c
rendererGLES: some clean up in tr_backend.c
renderercommon: missing GLES definitions from ptitSeb refs #336
mod: close files on early return
cgame: close file before error
cgame: close file before error
cgame: BG_NUM_ITEMS fixed, unused code removal refs #52
client: fixed hang on exit when com_pidfile is empty, refs #316
cmake: new cmake on windows creates an issue with the build and game libs get the wrong name and build, win should also use the crosscompile flag now
mac: fix for the sed issue, refs #355
misc: use GNU version of sed on all platforms, fixes #355
mod: hello Browning MG refs #350 many thanks to meyer and NQ!
mod: build fix
mod: notes, uncrustify