Fixes a bug when using C++.

When compiling C++ the wrapper would fail by using the path to gcc
instead of the path to g++. This patch modify the default profile to
take care of the wrapped executable name and use g++ when it should.