unix: Initial FFI module implementation

Here's promised FFI module. Already does a bunch of stuff (including python callbacks). One obvious issue is that this adds libffi dependency, specifically -lffi, which kind of configurability we don't have patterns to handle yet.