Fix vbsp missing skybox error case when building cubemaps.

The code previoused checked the address of a stack array that would always
evaluate non-zero, which wasn't what was intended.
Fix SortEntry operator< not being const.

This solves a problem where the standard library expects it to be const,
which causes compilation problems on GNU/Linux.
Fix bad class declaration in utils/vbsp/ivp.

The duplicated namespace in the member declaration causes the class to not
compile using gcc.
Fix use of temporary vector in utils/vrad/vraddetailprops.cpp.

This fixes a gcc compile error.
Avoid conflict with gamma(3) in utils/vrad/vrad.h.

The name of the global variable conflicts with the deprecated gamma function
from <math.h> on some systems. Additionally the variable appears to be
unused - should it rather just be deleted from the codebase?
Use Q_strncpy in utils/vbsp/detailobjects.cpp.
Fix bsp lump names being declared non-portably.

gcc issues warnings when encountering multicharacter constants, so we'll
simply emulate them in a manner works portably. The code assumes we are
using a little-endian machine - the real solution would be using using four
chars instead of an enum.
General:
* Fixed a variety of server browser issues with mods based on this SDK
* Fixed many warnings on various platforms
* Added source code for fgdlib and raytrace
* Updated many source files with the latest shared source from TF2.

OSX:
* Added support for Xcode 4.6
* Switched OSX builds to use Xcode instead of makefiles
* Moved libs from src/lib/osx32 to src/lib/public/osx32 or src/lib/common/osx32 to match windows better.

Linux:
* Moved libs from src/lib/linux32 to src/lib/public/linux32 or src/lib/common/linux32 to match windows better.
Merge remote-tracking branch 'remotes/source-sdk-2013/master'

Conflicts:
	mp/src/game/client/c_baseentity.cpp
	mp/src/game/client/c_baseentity.h
	mp/src/game/client/c_baseplayer.cpp
	mp/src/game/client/cdll_client_int.cpp
	mp/src/game/client/death.cpp
	mp/src/game/server/ai_behavior_lead.cpp
	mp/src/game/server/ai_networkmanager.cpp
	mp/src/game/server/ai_tacticalservices.cpp
	mp/src/game/server/baseentity.cpp
	mp/src/game/server/baseentity.h
	mp/src/game/server/client.cpp
	mp/src/game/server/doors.cpp
	mp/src/game/server/doors.h
	mp/src/game/server/episodic/npc_hunter.cpp
	mp/src/game/server/hl2/npc_barnacle.cpp
	mp/src/game/server/hl2/npc_zombine.cpp
	mp/src/game/server/player.h
	mp/src/game/server/props.cpp
	mp/src/game/server/testfunctions.cpp
	mp/src/game/server/util.cpp
	mp/src/game/shared/GameStats.cpp
	mp/src/game/shared/playernet_vars.h
	mp/src/game/shared/shareddefs.h
	mp/src/lib/public/mathlib.lib
	mp/src/lib/public/osx32/matsys_controls.a
	mp/src/lib/public/tier1.lib
	mp/src/lib/public/vgui_controls.lib
	mp/src/public/XUnzip.cpp
	mp/src/public/bone_setup.cpp
	mp/src/public/cdll_int.h
	mp/src/public/engine/IStaticPropMgr.h
	mp/src/public/engine/ivmodelrender.h
	mp/src/public/inputsystem/iinputsystem.h
	mp/src/public/tier0/dbg.h
	mp/src/public/tier0/platform.h
	mp/src/public/tier1/fmtstr.h
	mp/src/public/tier1/utlstring.h
	mp/src/public/vgui_controls/Panel.h
	mp/src/tier1/bitbuf.cpp
	mp/src/tier1/strtools.cpp
	mp/src/vgui2/vgui_controls/TextEntry.cpp
	mp/src/vpc_scripts/groups.vgc
	mp/src/vpc_scripts/source_linux_base_project.vpc
	sp/game/mod_hl2/resource/ClientScheme.res
	sp/src/devtools/bin/vpc.exe
	sp/src/devtools/makefile_base_posix.mak
	sp/src/dx10sdk/Utilities/dx9_30/dx_proxy.dll
	sp/src/dx9sdk/utilities/dx_proxy.dll
	sp/src/game/client/c_baseentity.cpp
	sp/src/game/client/c_baseentity.h
	sp/src/game/client/c_baseplayer.cpp
	sp/src/game/client/cdll_client_int.cpp
	sp/src/game/client/client_base.vpc
	sp/src/game/client/client_episodic.vpc
	sp/src/game/client/client_hl2.vpc
	sp/src/game/client/death.cpp
	sp/src/game/protobuf_include.vpc
	sp/src/game/server/ai_behavior_lead.cpp
	sp/src/game/server/ai_networkmanager.cpp
	sp/src/game/server/ai_tacticalservices.cpp
	sp/src/game/server/baseentity.cpp
	sp/src/game/server/baseentity.h
	sp/src/game/server/client.cpp
	sp/src/game/server/doors.cpp
	sp/src/game/server/doors.h
	sp/src/game/server/episodic/npc_hunter.cpp
	sp/src/game/server/hl2/npc_barnacle.cpp
	sp/src/game/server/hl2/npc_zombine.cpp
	sp/src/game/server/player.cpp
	sp/src/game/server/player.h
	sp/src/game/server/props.cpp
	sp/src/game/server/server_base.vpc
	sp/src/game/server/testfunctions.cpp
	sp/src/game/server/util.cpp
	sp/src/game/shared/GameStats.cpp
	sp/src/game/shared/playernet_vars.h
	sp/src/game/shared/shareddefs.h
	sp/src/lib/common/linux32/libcrypto.a
	sp/src/lib/common/linux32/libcurl.a
	sp/src/lib/common/linux32/libcurlssl.a
	sp/src/lib/common/linux32/libssl.a
	sp/src/lib/public/appframework.lib
	sp/src/lib/public/bitmap.lib
	sp/src/lib/public/choreoobjects.lib
	sp/src/lib/public/dmxloader.lib
	sp/src/lib/public/fgdlib.lib
	sp/src/lib/public/libprotobuf.lib
	sp/src/lib/public/linux32/libprotobuf.a
	sp/src/lib/public/linux32/libsteam_api.so
	sp/src/lib/public/mathlib.lib
	sp/src/lib/public/matsys_controls.lib
	sp/src/lib/public/nvtristrip.lib
	sp/src/lib/public/osx32/libSDL2-2.0.0.dylib
	sp/src/lib/public/osx32/libprotobuf.a
	sp/src/lib/public/osx32/libsteam_api.dylib
	sp/src/lib/public/particles.lib
	sp/src/lib/public/raytrace.lib
	sp/src/lib/public/shaderlib.lib
	sp/src/lib/public/tier0.lib
	sp/src/lib/public/tier1.lib
	sp/src/lib/public/tier2.lib
	sp/src/lib/public/tier3.lib
	sp/src/lib/public/vgui_controls.lib
	sp/src/lib/public/vmpi.lib
	sp/src/lib/public/vstdlib.lib
	sp/src/lib/public/vtf.lib
	sp/src/materialsystem/stdshaders/game_shader_dx9_base.vpc
	sp/src/mathlib/mathlib.vpc
	sp/src/public/XUnzip.cpp
	sp/src/public/bone_setup.cpp
	sp/src/public/cdll_int.h
	sp/src/public/engine/IStaticPropMgr.h
	sp/src/public/engine/ivmodelrender.h
	sp/src/public/game/server/pluginvariant.h
	sp/src/public/inputsystem/iinputsystem.h
	sp/src/public/tier0/dbg.h
	sp/src/public/tier0/platform.h
	sp/src/public/tier1/fmtstr.h
	sp/src/public/tier1/utlstring.h
	sp/src/public/vgui_controls/Panel.h
	sp/src/tier0/tier0_exclude.vpc
	sp/src/tier1/bitbuf.cpp
	sp/src/tier1/strtools.cpp
	sp/src/tier1/tier1.vpc
	sp/src/utils/captioncompiler/captioncompiler.vpc
	sp/src/utils/glview/glview.vpc
	sp/src/utils/height2normal/height2normal.vpc
	sp/src/utils/motionmapper/motionmapper.vpc
	sp/src/utils/phonemeextractor/phonemeextractor.vpc
	sp/src/utils/phonemeextractor/phonemeextractor_ims.vpc
	sp/src/utils/qc_eyes/qc_eyes.vpc
	sp/src/utils/serverplugin_sample/serverplugin_empty.vpc
	sp/src/utils/tgadiff/tgadiff.vpc
	sp/src/utils/vbsp/vbsp.vpc
	sp/src/utils/vice/vice.vpc
	sp/src/utils/vrad/vrad_dll.vpc
	sp/src/utils/vrad_launcher/vrad_launcher.vpc
	sp/src/utils/vtf2tga/vtf2tga.vpc
	sp/src/utils/vtfdiff/vtfdiff.vpc
	sp/src/utils/vvis/vvis_dll.vpc
	sp/src/utils/vvis_launcher/vvis_launcher.vpc
	sp/src/vgui2/vgui_controls/TextEntry.cpp
	sp/src/vgui2/vgui_controls/vgui_controls.vpc
	sp/src/vpc_scripts/definitions/win32_2010.def
	sp/src/vpc_scripts/groups.vgc
	sp/src/vpc_scripts/projects.vgc
	sp/src/vpc_scripts/protobuf_builder.vpc
	sp/src/vpc_scripts/source_base.vpc
	sp/src/vpc_scripts/source_dll_base.vpc
	sp/src/vpc_scripts/source_dll_linux_base.vpc
	sp/src/vpc_scripts/source_dll_posix_base.vpc
	sp/src/vpc_scripts/source_dll_win32_base.vpc
	sp/src/vpc_scripts/source_dll_win32_debug.vpc
	sp/src/vpc_scripts/source_dll_win32_release.vpc
	sp/src/vpc_scripts/source_exe_base.vpc
	sp/src/vpc_scripts/source_exe_con_win32_base.vpc
	sp/src/vpc_scripts/source_exe_posix_base.vpc
	sp/src/vpc_scripts/source_exe_win_win32_base.vpc
	sp/src/vpc_scripts/source_exe_win_win32_debug.vpc
	sp/src/vpc_scripts/source_exe_win_win32_release.vpc
	sp/src/vpc_scripts/source_lib_base.vpc
	sp/src/vpc_scripts/source_lib_posix_base.vpc
	sp/src/vpc_scripts/source_lib_win32_base.vpc
	sp/src/vpc_scripts/source_lib_win32_debug.vpc
	sp/src/vpc_scripts/source_lib_win32_release.vpc
	sp/src/vpc_scripts/source_linux_base_project.vpc
	sp/src/vpc_scripts/source_posix_base.vpc
	sp/src/vpc_scripts/source_video_base.vpc
	sp/src/vpc_scripts/source_win32_base.vpc
	sp/src/vpc_scripts/version.vpc
	sp/src/vstdlib/vstdlib_exclude.vpc
Merge commit '82fe37f'
* Fixed Source Mod back-compatability by reordering methods in a couple interfaces.
* Added missing singleplayer OSX libs
* Updated vpc and libs.
Merge branch 'master' of https://github.com/ValveSoftware/source-sdk-2013
Merge remote-tracking branch 'remotes/source-sdk-2013/master'

Conflicts:
	mp/src/public/engine/IStaticPropMgr.h
	mp/src/public/engine/ivmodelrender.h
	mp/src/public/gamebspfile.h
	mp/src/utils/common/mstristrip.cpp
	mp/src/utils/vbsp/cubemap.cpp
	mp/src/utils/vbsp/detailobjects.cpp
	mp/src/utils/vbsp/ivp.cpp
	mp/src/utils/vrad/vrad.cpp
	mp/src/utils/vrad/vrad.h
	mp/src/utils/vrad/vraddetailprops.cpp
	sp/src/devtools/bin/vpc_linux
	sp/src/devtools/bin/vpc_osx
	sp/src/dx10sdk/Utilities/dx9_30/dx_proxy.dll
	sp/src/dx9sdk/utilities/dx_proxy.dll
	sp/src/lib/public/bitmap.lib
	sp/src/lib/public/linux32/bitmap.a
	sp/src/lib/public/linux32/choreoobjects.a
	sp/src/lib/public/linux32/dmxloader.a
	sp/src/lib/public/linux32/libtier0.so
	sp/src/lib/public/linux32/libvstdlib.so
	sp/src/lib/public/linux32/matsys_controls.a
	sp/src/lib/public/linux32/particles.a
	sp/src/lib/public/linux32/shaderlib.a
	sp/src/lib/public/linux32/tier2.a
	sp/src/lib/public/linux32/tier3.a
	sp/src/lib/public/linux32/vtf.a
	sp/src/lib/public/matsys_controls.lib
	sp/src/lib/public/nvtristrip.lib
	sp/src/lib/public/tier2.lib
	sp/src/lib/public/tier3.lib
	sp/src/lib/public/vmpi.lib
	sp/src/lib/public/vstdlib.lib
	sp/src/public/engine/IStaticPropMgr.h
	sp/src/public/engine/ivmodelrender.h
	sp/src/public/gamebspfile.h
	sp/src/utils/common/mstristrip.cpp
	sp/src/utils/vbsp/cubemap.cpp
	sp/src/utils/vbsp/detailobjects.cpp
	sp/src/utils/vbsp/ivp.cpp
	sp/src/utils/vrad/vrad.cpp
	sp/src/utils/vrad/vrad.h
	sp/src/utils/vrad/vraddetailprops.cpp
Stuff left over from the merge.
Don't show the spectator menu when players press control, since that's the slide button.
Use the dive hull when wall flipping, hopefully avoids some wallstucks.