[JK2SP] Fix yavin_swamp by removing GL fog when compiling the renderer for JK2.
Also sets r_drawfog to 1 for JK2 mode instead of 2.

This commit reverts 400e5c053a24b530b1aa89033e109afdc0fbb7ff
This commit fixes issue #548
[MP] Fix forward declarations in g_public.h which are for the engine and not game.

Should allow for an easier switch to C++ of gamecode in the future.
[SP] CTaskManager::Get optimization for TK_VECTOR
[JK2SP] CTaskManager::Get optimization for TK_VECTOR
[MP] CTaskManager::Get optimization for TK_VECTOR
[JK2SP] Fixed potentional OOB access in CG_ServerCommand
Merge pull request #549 from BSzili/master

Small ICARUS optimization, fixed potentional OOB access with the "ct" command in JK2SP.
[SP] Use safe Com_sprintf in JASP CTaskManager::Get like JOSP and MP.
[JK2SP] Fixed invalid sizeof on a Q_strncpyz in CG_ParseServerInfo.

Possible cause of string mangling.
[SP] Use Q_strncpyz, Q_stricmp in CG_ParseServerInfo.
[JK2SP] Fix some Coverity warnings in JK2SP cg_camera.cpp.  Merged from JASP.
[SP] Fix incorrect casting of pointer type in win_glimp.cpp from cvar value.
[SP] Buffer safety on buf when copying from glConfig.renderer_string.
[MP] Fix missing binds in UI that were mistakenly removed during the cleanup.
Remove +force_jump binding as its not used.
[SP] Cleanup of binds code in UI. Removed some unused code, and add some const.
[SP] Fix an invalid null deref check in the slider code.
[JK2SP] Fixed missing cgs.mapname after removing the hack from before.
[JK2SP] Improve cg_servercmds to use bsearch.
[SP] Fix a file close that happened after an error.  Fixed a couple of missing file close calls in case of file being too large for buffer.
[SP] Add clipboard support to SDL2 backend. Remove unused profiling functions.