Fix MSVC build warnings