Get zlib from http://www.riscos.info/downloads/unix-libraries/. Note that some of these libraries are built with special options for NetSurf (for example without some parts).