Fix 32 bit build.

This fixes GitHub pull request #2503.
Merge pull request #2530 from klickverbot/bitop-system-32bit

Fix 32 bit build.