remaining changes to support third-party/
support using system zlib or bz2, or both