Fixing minor compiler warnings in MSVC