Allow distcheck to work

Patch provided by Steve Grubb (sgrubb@redhat.com). This updates the
autotools setup to allow distcheck to work. This is prelimiary work
for better packaging support.