fix for memcopy and LZ4 lib compress