fix 32 bit builds, fixes #151
Merge pull request #164 from eklavya/master

fix 32 bit builds, fixes #151