Merge pull request #591 from nico/fixrestat

Fix restat builds with edges generating headers depended on through deps...