Fixed msvc warnings