Fix the description of %a query format in pkg-query(8).

The flag is set for automatically-installed packages rather than
orphaned ones.
Fix gcc warnings
Fix priority loading