Added option to override C++ compiler using an environment variable.