When debug is enabled, update CXXFLAGS in addition to CFLAGS.