Migrated build system to autoconf (not automake)