changed m4 file to avoid duplicated CXXFLAGS