working on pthreaded zlib: failing so far, due to concatenated zlib streams