Remove illigal (and not neccesary) friend definition to fix compilation on Mac OS