It'd be interesting to see the differences in upbringing that allowed for the Soviet Union back in the 60s to have a stat where "one-third of the engineers and 75 percent of the physicians are women." [1]
Having been in the role of a guy in a computer science class at a large public university with roughly similar ratios, I wouldn't say that the motivation that people don't work with women is mostly due to the stereotype. It's likely due to the social ineptitude of engineering students. I definitely could relate to Max Levchin talk about how PayPal had difficulty in hiring women because they were nerds that didn't know how to relate to women. [2] Granted, as the author points out, the stereotype threat exists due to the outcome being perceived as social bias.
Perhaps a solution as well is to help nerdy guys interact with girls in high school while the gender balance is fairly balanced. Perhaps projects with "random" (assigned) partners. Looking back at some of the things I did, I can't believe I was that socially awkward.
[1] http://books.google.com/books?id=dwTvE44DOgQC&lpg=PA145&... pg 188
[2] http://blakemasters.tumblr.com/post/21437840885/peter-thiels...