Makefile.m4: Fix linking problems.