Fix autobuild bugs

* Makefile.am: add lib directory
* configure.ac: change name to avoid gnulib clash, add paths to header search