Fix make check, make distcheck for older automake

(This isn’t quite enough to fix `make distcheck` on old automake; #129 accomplishes the remainder of that.)