changed configuration stuff, replaced some Makefile.am by distfiles.