(Try to) avoid name mangling conflicts on 32-bit architectures

Pass "long" arguments via functions that are not mangled by the compiler; instead, manually mangle the names.