CMakeLists.txt: Enable use of C++17 on Apple systems