Only turn on C++11 (and other C++ LangOpts) if C++ is enabled.