The problem with GSoC is that it doesn't count as an internship for companies that need one. Or meeting my university's requirement for an internship, although that requirement could be fought against.
On the subject of visas: I know that in the US, if you come on a student visa, there are certain allowances for summer internships in technical fields. Your local consulate should know the details.
I haven't done it myself, so I don't know if my advice is any good, but I'd suggest picking one that interests you and getting started fixing bugs as soon as possible. And when you have a chance, double-check that they intend to take part this summer, too.
A friend of mine did GSoC a few summers ago. If you like, send me an email and I'll put you in touch.
With regards to the first point...
Most companies here (Pakistan) are in the web/mobile app development business or developing CRUD apps for clients. While I don't necessarily think that's bad, I'd prefer doing something more innovative or interesting, possibly AI, data mining, or just something that's good on the social/humanitarian front.
What I'm wondering is, how can someone like me have a chance of getting an internship at a place doing something really useful or innovative? Getting a visa would be difficult for just an internship.