Small fixes

Fix a insecure format string in libpkg/pkg_repo.c, removed dead
assignments in libpkg/pkg_elf.c and libpkg/backup.c