Fix compile problems when compiling without libz support.

Don't depend on Bytef as datatype which is a libz invention.