C++11 and git compatibility

This is the config_environment from libMesh, modified by Ben Kirk to
query git revision id and by me to avoid a C++11 -Wliteral-suffix
warning