Modify referenced environment variables.

'CXX' is used instead of 'CC'.
'CXXFLAGS' is used instead of 'CFLAGS'.