configure.mk: reorder some rules.