Many fixes to concurrency primatives and zlib streams.  Compression streams are finally working.