Correctly set -stdlib=libc++ for Clang.

This is an addendum to 668a9962d181735baa0c5395aa1fd2f48b226885.

The problem with the previous "fix" was that it simply set `CMAKE_CXX_FLAGS` although the remaining script assumes it has not been set at this point.