Part of it seems to be the self fulfilling prophecy of the "Girls are not good at math and science" stereotype thing. Even though they start out doing better than boys, they stop trying because that thought creeps in from what their peers or others in the community say.
Then here might be a fundamental difference and disconnect between males and females.
With all due respect to anyone who finds me uncool, or does't like my ideas or interests. I just truly do not give a flying fig about that. It is my interest, not theirs.
But if a young woman can have an interest, and be discouraged to the point of abandoning it just because some other people do not think it is cool, then the problem is immense, and might be intractable.
What is more, the present day approach - "We must eliminate the male centric enforcement of Tech careers" - is completely wrong.
Young women would have to realize that their "problem" is not necessarily the fault of males, but of their own gender and the values their own gender might be trying to impose.
And looking at the direction society is running these days, that isn't going to happen. Little girls don't wear T-Shrts that read "Boys are Stupid - Throw Rocks at them for nothing. http://www.tshirts.in/xtees/ladies-t-shirts_lt00002/boys-are-stupid-throw-rocks-at-them-tops.htm
And an actual assault is considered cute
Or blatant sexual crap
Mainline media. The world has changed, and most men are well beaten down.
My point? If this actually is a problem, it will be exceptionally hard to fix, because women will be looking for the answer to the wrong problem. This will be a completely unpopular position, but not necessarily because it is wrong.