Honour CXX environment variable.
g++ 4.6.x compatibility