Fix handling of CXXFLAGS in configure.ac.