Copied from yanmaani's tor-browser-build pywin branch.
Fixes https://github.com/namecoin/ncdns-repro/issues/31