Add automake and autoconf for portable builds.