I am working in an environment where very few women are present. Personally, I am in a team with 4 male co-workers.
Every now and then they make sexist and stereotypical remarks about women (or gay people) and I'm not always able to ignore them and calm down. I'm not a very talkative person and my way of coping with this is not commenting most of the time (increase the volume of headphones, leaving the office for a little while), so I will not show I am irritated and in that way trying not to reinforce this behavior. I know that it may be a little 'childish' of me to pay attention and be annoyed by these things and not just joke about them, but they sometimes distract and offend me.
Note that they behave this way to other women that occasionally come to the office (to have lunch with us and chat) and it seems as these female colleagues need to justify themselves for whatever 'womanly behavior' they are imparted with. Well, it is always in the form of teasing and joking when this interaction takes place, but I have no doubt that they actually believe the things they say.
Of course I've told them that they shouldn't discuss such things (and other topics such as political or religious matters) at least not in front of me, but they don't seem to be affected by it. Is there anything else I could do in order to stop them?
EDIT :
The country is not worth mentioning, it's a developed country with no - formal - gender inequalities.
The company is international and has an HR department, but if I were to complain they would consider it a minor problem and probably would not take any action. Also, I don't want to accuse my co-workers, because except from this problem we are 'getting along'.
I am not new to the company, I work with these guys for 3+ years, although not in the same office as we are now. We've been working in the same room (separate from the other teams' offices) for about a year.