fix 32 bit builds, fixes #151