check specified compiler is g++