Update debug flags to AM_CXXFLAGS