Extra flags and modifications to allow building with clang by exporting CXX=clang++