Reordered libraries. Hopefully this will fix the CI build.