Got it

Wow that was a pain, but so much fun. It's compiling now, lets see if my ugly hacks work...
Got some other things to attend to now. Will attempt to get a patch or something out later if the compile works.
Basically it was just syntax in the mozilla m4 files and some in configure. Some files I just copied over and replaced from the 3.0.12pre that compiles just fine.