Move c-ares build scripts into external files.