added local zlib support