AVALANCHE: Use a class-key when declaring a friend class