Fix building on some linux distros in llvm

Many linux distributions use the clang c++99 and gcc c++89 defaults.
Ensure we're building in C++11 mode with gnuism support.
This is most commonly an issue when building with llvm and *not* standalone.

Not an issue on freebsd 10 or other clang/c++11 defaulting BSDs