allow CXXFLAGS to be set without overwriting needed flags
recognize clang in linux