SERVER-8791 SERVER-9151 Fix MSVC warnings