autotools: fix make dist
Here's some patches to make Autotools' "make dist" produce something that a) works and b) let's us build using meson.
This can be used to cut a final release using Autotools to produce the distribution, so we get the configure
-script generated in the tarball.