Migrates to gnu autotools and stuff.