Use standard "friend" syntax.

Fixes #256