msvc compiling errors fixed

msvc compiling errors fixed.