C++11

Reference #1401.

Change much stuff to use new library.
Do these really need to be global? Are they used in enough files that to improvement to recompiled headers will offset the slowdown to non-precompiled headers builds.