Being an ex-queer (bi ;) I've had to put up with my fair share of subtle jabs and general discomfort with my presence. After a long time I figured out that the only thing that worked for me was to be more dominant than 'them.'
The thing is, women (and queers) are fucking powerful, they're just powerful in a different way. Ironically, but not unsurprisingly, women are taught not to use this power as it's 'inappropriate.'
You see, men don't have a clue as to how group dynamics work. Women do and have been trained in this from childhood on as it is their 'arena' just as much as the sports field is ours.
When we enter the workforce however, suddenly 'fair' means fighting like it happens on the sports field, 'fair' means fighting the boys' fight.
In the workplace, open competitiveness and overt displays of hierarchical dominance (boy's game) are perfectly acceptable, but figuring out the motives of your enemy's friends, observing when he breaks them and subtly informing those friends about that in order to weaken his support base (girl's game) is considered 'nasty.'
When I finally accepted that this was bullshit, everything turned around for me.
Whenever someone did something like this to me, over the next few days several of his allies would get a quick visit from me with some nice small-talk and a little one-liner thrown in about how X hurt me by doing Y. Within days X would find himself somewhat more alienated, perhaps reprimanded slightly by one of his peers about Y, left to wonder what he did wrong.
Over time it was as if a subconscious message spread across the workfloor: "You'd better respect me. If you don't your life will become a lot harder and you'll have no idea how the fuck it happened."
Now for everyone who reads this and thinks my description of this is disgusting, please understand that I'm merely able to describe it this way as I've had the fairly unique perspective of having been a part of both 'worlds.' From a woman's perspective an in-depth analysis of mens' quest for dominance would sound equally messed up.
Just like very few men understand a woman's world, very few women understand a man's world.
TL;DR; Men and women establish hierarchies in different ways. Women have been taught their way is inappropriate in business. They should do it anyhow.
P.S. Funnily enough, after I started dating a girl and 'became straight,' the women on the floor suddenly started calling me out on this behavior and nudged me back into the 'male hierarchy.'