build: fix library linker order

libcommon.a references functions from libarchive, so it must be listed
before the same in the linker call. This fixes build with -Wl,--as-needed.

https://bugzilla.gnome.org/show_bug.cgi?id=735144