static, const, autotools

Two quick patches:
* Use static and const in a few appropriate places in duplicates.c
* Remove auto-generated autotools files from the repository. These are trivially regenerated using `autoreconf` and will become outdated quickly anyway. If needed for distribution they can be generated with `make distcheck` on-demand.