Fix a few problems found by "make distcheck".