wip Change the build system from raw autoconf to use automake and libtool.