Fix build on 32 bit processors.
Merge pull request #2291 from brendandburns/standalone

Fix build on 32 bit processors.