Move class ThreadedFile to trace namespace
ThreadedFile: fix dumping last buffer

When a exception throws inside a GL call a exception handler informs
a compressor thread that current buffer is ready for compression and
waits for buffer to be compressed and written
Move class CompressionLibrary in separate file