Improved zlib error message

Sometimes writing to compressed files can result in an unhelpful error message:
"zlib deflate failed:"
Which does not contain details because a message field is not given to us by zlib in all
cases. This patch addresses one of those cases mentioned in the zlib documentation, namely
when the output buffer is too small to hold the compressed input.

Change-Id: I4aa53083f79caf424c47ed6978789ad09ac82b63
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/5159
Reviewed-by: Victor Bittorf <victor.bittorf@cloudera.com>
Tested-by: jenkins