Refactor to use tup instead of autoconf and make