These patches seem to fix this problem. I haven't tested the resulting gij very extensively, but it can at least execute "hello world" type stuff now.
p.
arm-gij.dpatch
Description: application/shellscript
arm-libffi.dpatch
Description: application/shellscript