Add checks on compiler version to build system

Inspect compiler version number to determine if it has support for
necessary C++11 features. Emit a warning if that doesn't appear to be
the case. Set compiler flags as necessary.