Fix warnings about unused variables
Fix warning about format string not being a string literal
Fix warning about deprecated symbols in libarchive