fixed can not found winreg on windows