gmake: re-ordering links for dependent products.