Pass objects to linker before static library

The GNU linker discards symbols it does not need.

Pass objects with references to symbols in the static library to the
linker before the static library itself.