make sure CXX returns the basename of the compiler (requires CXX to be in PATH).