Dist the Makefile.am.in files. Fixes #10874.