Fix problem with variable cxx/CXX which was pointing to clang instead of clang++. Script is now working on Linux.