fix windows build warnings