Preliminary work on a libffi compatability layer.