Fixed conversion compiler warnings on MSVC 12.