Fix linking order with make GNU ld cares about the order in which static libs are mentioned on the command line: if A depends on B then A must com first.