Fix 32-bit integer compatibility
Merge pull request #135 from wmde/int32

Fix 32-bit integer compatibility