configure.in: Reorder the library checks alphabetically.