Make things compile: numerous fixes; esp. hash function for Edge.