Fix compiling issue of MSVC