Move build system over to autotools