Adding wrappers for friend declarations to avoid SWIG warnings