Compression and decompression now work correctly when compression is multithreaded