set cxx flags if not msvc