fix build on non-x86 64-bit arches

Patch originally by Dan Horák <sharkcz@fedoraproject.org>.

This fixes it for us on Fedora... but I don't know if these archnames are distro-specific?  Anyway, something needs to be done and this is something ;-)