Mutual respect for each other is the answer. Let's face it, we all (well, most of us) got into this game because of our passion for all things aeronautical, so we should be off to a good start in forming a great relationship.
Some of my fondest memories of working with pilots was my time in the air force. A young boggy pilot who was acting all up himself was usually bought down to earth fairly smartly by the senior pilots and vice versa for smart a*@ engineers. Yeh sure you do get the exceptions on both sides of the fence but that always makes for a good bitching session when all the good guys are sitting around having a beer
I love talking to pilots about their workplace and I find that they usually show and interest in ours... we do very different jobs, but do them to achieve the same result, just ask Orville and Wilbur Wright