Add --c++ switch to support pure C++ compilation.