unzipping files correctly with zlib's minizip