Add some ugly workarounds for segmentation faults on 32 bit architectures

These are caused by mozilla/rust#11040

Closes #86
Merge pull request #147 from bjz/ugly-fixes

Add some ugly workarounds for segmentation faults on 32 bit architectures