Fix msvc build error
Merge pull request #911 from cgohlke/patch-1

Fix MSVC build error