cmake: Only enable C++11 if enable_if is supported
Merge pull request #1260 from rleigh-dundee/cmake-cxx11-mac108

cmake: Only enable C++11 if enable_if is supported