Fixing type conversion warning in MSVC.
Fixing warnings about uninitialized member variable.