Add seek and skip callback functions for libarchive

Seek callback function is required to extract 7-zip file.
Fix extraction problems for archives containing only one file
Fix bugs in the previous commit