Fixed MSVC warnings