GNU Autotools compilation, plus a few other tweaks

The extra files should help people who are familiar with the GNU autotools approach of building. All you need to to is `./configure` and `make`. An alternative Makefile that I made myself is available under the name `Makefile.alt`.
In addition, the program now checks whether the file `cfg.cfg` exists, and a few missing `#Include`s were added.