Error with gzipInflate/gzipDeflate
This type of error means that you haven't included a library or framework.
A quick Google of deflateInit2 tells me it's the libz framework.
If you add libz.dylib to your list of frameworks it should compile.
Hope that helps.