a typo left in the code does not require zdll.lib... zlib is actually included in the frameworks that comes with xcode, you just have to go and turn it on.