Move curl build scripts into external files.