Fix externals building.