fix detection for CXX=clang