Add a bootstrap script, improve Makefile.am and configure.ac

This should make the project more easily configurable. Otherwise, people have to figure out the content of a bootstrap script. I've added the extra lines in the project config files following the suggestions of the gnu tools.