Set CXX compiler based on C compiler.