modify flags for msvc