fixed windows build issues