Get yourself a broken bolt/stud puller. Pull the header off, hammer puller onto broken stud, turn them out with a wrench. Pretty easy, I'd also suggest some PB blaster on all of the bolts/studs before removing them, especially the 2 broken ones. Spray that stuff on there several times and let it soak in for hours before trying to turn them.
you could just go the all stud ARP route and replace all of those silly bolts mazda decided to grace us with. SO much easier to work on stuff with those.
i just went to pepboys and auto zone lol they had them there in there hardware section if you want ill post at pic of what they are later when im not drunk ofd my ass