fix build on non-x86 64-bit arches

Patch originally by Dan Horák <sharkcz@fedoraproject.org>.
Merge pull request #6 from cbm755/master

fix build on non-x86 64-bit arches