Fix Zlib error messages. Remove extra variable in Bzip2 decompress routine.
Restructure compression functions to take chunk flag as argument. Add missing error flag printing in LZMA. Only create enough threads as needed by chunk size and file size. Minor cleanups and variable name changes.