fix windows build issues