Added FFI support MacOSX