Fix autotools configuration

* Add some headers to the list of installed files.
* Specify the "foreign" strictness so that automake does not complain
  about missing files.
* Specify a directory for m4 macros as suggested by libtoolize.
* Add autotools-generated files to gitignore.
Merge pull request #48 from magicant/autotools

Fix autotools configuration