Add building via cmake to escape autotools hell.