enable ffi and make initial foundation bindings