Add zlib functionality

Requires: https://github.com/luvit/zlib/pull/3