Re-ordered link library order to be in reverse order that ld requires.