cxx11: only ask for libc++ for C++ code
It might be that explicitly requesting libc++ is no longer necessary for modern Apple anyways, but that requires more investigation into the non-CMake projects this is affecting. But passing it as a linker flag makes it used for every language linker which doesn't work out too well.
(cherry picked from commit e48481fd)