White space
Replace the global in ZTrees.h by thread local state (initialiation is costly)
When using the builtin zlib we need to public some of the headers.

For example TPDF.cxx on Windows uses zlib.h