Assuming you've already given it a good soaking in Plusgas (better than wd40), then get some heat into it. Ideally oxy-acetalene but assuming you don't have that at home, a normal blow-torch is better than nothing. Try to get it as hot as possible. If it's badly rounded off then hammering on a smaller socket is worth a try.
Absolute last resort would be to remove the exhaust manifold from the head (although chances are, at least one of those studs will break), separate the downpipe from the exhaust and remove the whole lot from the car.