fixed some forward declaration stuff
first attempt at adding autotools files
added all the autotools files