fixing windows build errors