Added makefiles for lib/ and updated configure.ac accordingly
Added *~ and autom4te.cache to .gitignore