Adjust the order of libraries