Untested windows build support.
Applied @cgohlke 's diff.