Updated curl build script