Fixed zlib build issues on win