Fixed compiler warnings under MSVC.

Fixed compiler warnings under MSVC.