Use CXX compiler for building C++ code.

Use CC as a fallback.