(should) fix build on most linux machines
Revert "(should) fix build on most linux machines"

This reverts commit 88b04683d0788a53aab83b3b3412542d2ce8ea26.
SERVER-2874 fix geojson patch w/o chmod

Conflicts:
	src/mongo/SConscript
fix solaris build
compilation fixes for gcc 4.7
fix compile on freebsd
SERVER-7670 fix test for solaris (windows has same exact problem, fix TBA)
fix drem for windows so s2near test doesn't fail
SERVER-7794 fix drem impl for windows
fix solaris build, use our own drem()
SERVER-7822 SERVER-7976 pragma-out windows s2 warnings
speed up frequently used toString() in s2cellid

Conflicts:
	src/third_party/s2/s2cellid.cc
	src/third_party/s2/s2cellid.h
use MONGO_INITIALIZER to ensure ordering of s2's static inits
Fix Windows compile warning on ARRAYSIZE
speed up 2dsphere near search

Conflicts:
	src/mongo/db/geo/s2nearcursor.cpp
	src/mongo/db/geo/s2nearcursor.h
SERVER-9325 Add __C99FEATURES__ CPPDEFINE for Solaris to enable isinf()

This makes the build compile on Solaris 11.1 in addition to SmartOS.