Attempt fixing namespace issue with friend class