Attempt to improve zlib git

@gaurave @devoncarew an attempt to add back the zlib support. Still misty on what the original reasons for removing  so please reject PR as needed. All unit tests pass and was able to clone && commit && push a git repo from within spark. Randomly on logging into github spark might of crashed, not sure if its related to this patch.