cleaning up configure.ac

Correcting a few warnings in the configure.ac, also regenerating all the
autotools files.

Adding the libX11 linker directive into src/Makefile.am