Fix for issue with _winreg.