Fix friendship declaration to match actual class declaration.

This is a compilation warning fix. No functional change.