Fix up code so it compilers for MIPS.

MIPS follows itanium ABI. This CL does NOT make MIPS work,
but it at least lets it compile by untangling the EHABI specific
pieces there have accidentally crept into the shared code paths.

Change-Id: Ic3ac89b33e2c61eae274908d416c3d93c6ab5c36
Merge pull request #142 from awong-dev/mips

Fix up code so it compilers for MIPS.