FFI / cocoa gem support

so that we support cocoa operations through FFI.
tested with the infamous cocoa gem that access cocoa through just that - FFI.