Fix an incorrect 'friend' declaration