Portable real-time compression library