Fixed lz4 compression routines