Fix warnings about unused variables
Fix warning about format string not being a string literal
repo: Use non-deprecated API with sufficiently new libarchive

Based on a patch Tobias Hunger <tobias.hunger@gmail.com>
Configure: Add buildopt for arch modules and switch-root
Add support for arch linux