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
Avoid shadow variable/struct name
libCore now depends on pthread on some platforms
Correct which directory to add to -I (src rather than inc)