Bug fix iogauge, globalmax, cxx flags