Migrating to the autotools build system