Fix MSVC compiling issue