Adds autotools and removes old buildsystem.