Smarter handling of MSVC flags