update the cxx flags as appropriate