Set c++ standard by CMAKE_CXX_STANDARD
Summary
This MR changes the way the c++ standard is set in the toolchains. Instead of manually setting cxx flags, we call CMAKE_CXX_STANDARD. In addition for older release versions, the now deprecated variable CXX_MAX_STANDARD is set.