[JK2SP] Fixes surface sprites on yavin_swamp water

fixes interaction with r_drawfog 2 fog. note that the water itself
seems to have problems still.
[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.
Merge branch 'master' of https://github.com/JACoders/OpenJK