Either be part of the click and don't be part of it. Life is MUCH easier if you try and get along with them. With that being said, sometimes its not possible. In my old job I wasn't part of it and hated some of them so much that to this day if I ever bumped into one or two of my old work colleagues, a fight would probably ensue. These days my life is stress free. I have a team that we all get along and a good boss that has never once tried to undermine any of us. He gets respect and we all give it our utmost effort.
Also working for someone else, it ALWAYS changes.. Your boss may leave or someone else influential may go, and everything will turn around. You kinda just have to ride it out, or move on. My last place, I moved on, got a 20k payrise (over the course) much less stress and much more respect. BUT for a yr it nearly all went **** up, when a female boss came into play. FORTUNATELY they fired her, but she was making everyone's life hell for a while. Ride it out or move on.