fix warnings of MSVC