Patch by Andrew Shadura, providing better support for three architectures they have in Debian.
(regeneration of "configure" not done yet)
re-generate configure