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

This is to avoid putting the compiler into C++11 mode on MacOS 10.8 which uses a broken hybrid of LLVM/clang with the GNU GCC libstdc++ standard library by default.  This breaks things when the compiler supports C++11 but does not have the necessary functional library features.