Migrate from CMake to Autotools