Remove double friend class

Fix linux compiler warning