autotools: Fix makefiles.