Minor change to library ordering to support Ubuntu's (and other distros) default linker flag '--as-needed'.