Updated configure script, Makefile, build instructions.

autogen.sh and configure improvements taken from Gource.