fix the makefiles

one detail: we no longer need to install libtool and pkg.m4 if we build
a modern version of automake, because now we know how to find and
record the path used by the old aclocal and pass it to the new one.