fixed some msvc compiler warnings