change ranlib and ldconfig order