Merge pull request #20 from jsonn/master

Corrected patch for non-EHABI exceptions on ARM - with broken commit in the middle
Reorganize code to use only 32bit atomic ops for 32bit platforms.
32bit PowerPC for example lacks 64bit CAS.