update makefiles for CXX environment variable