Ah well, forget it. The solution is found in using the language's FFI
structure as the normative structure to code algorithms against,
instead of the libffi type structure. Not so nice for me, since it
will be somewhat slower, but I guess it's better than a
quick-and-dirty fix.
Thanks anyway, cheers,
Marco