autotools: switch to autotools buildsystem