Add support for building on linux

I added in supoprt for autoconf/automake for building on linux. I then started to address some of the compiler warnings I was getting. The changes should be compatible with your tools as well. Let me know if this is of any interest to you or if you have problems with the changes.