Fixed overwriting of CXXFLAGS.