Compression abstraction library and utilities