Makefile: Fix libraries link order.