multiple small changes

- gitignore more files
- make code conform to my personal standards
- add more missing includes to deal with implicit function declaration
warnings
- actually use automake
- update configure script
- regenerate build system