Reordered libraries for Ubuntu.