Add more wrappers by using capi

Compress by xz instead of bzip2.