remove most compiler warnings on msvc