Fix build error with MSVC++ on Python 3