re-work on LZ4

Signed-off-by: Willi Ye <williye97@gmail.com>