use cpp compiler for compiling c++ tests