Fixed some MSVC specific warnings