Fix compilation error with msvc on py3.x