Hacky LZ4 implementation