Tweak to CMake configuration tothat allows the version of the C++ standard to be
modified via the environment variable `CMAKE_CXX_STANDARD`.
The modified implementation only allows the change if the specified standard is newer
than our default, currently C++17.