These patches provides a possible "cleanup" pattern to be applied to other packages as well. The most important issue should be the correction "make distcheck", as it is the expected way to generate tarballs for distribution.