Hacking zlib code