fixes to curl and resetdb for windows