Integrating libarchive for archiving and compression