MSVC compiler warning fixes