Add unintentionally omitted class keyword in friend declaration.

Interestingly, Clang accepts this but not GCC.