remove some diagnostics messages for MSVC compiler