Fix builds with MSVC