fix windows build errors