Add restrict where required by AGd4.