Fix missing 'class' keyword when using 'friend' attribute.