fix cxx flags for windows