Cherry-pick some libc++ fixes from: https://jira.mongodb.org/browse/SERVER-11070
Upgrade from gtest 1.6.0 to 1.7.0
Need to include locale.h for libc++
Merge pull request #525 from stennie/issue-524

Fix #524: OS X build fixes for XCode 5 / libc++