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