fix some msvc compiler warnings.