Allow testing in a separate build directory

Now we pass ‘make distcheck’.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Don’t distribute generated sources

Signed-off-by: Anders Kaseorg <andersk@mit.edu>