Add missing 'class' to friend declaration.