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.
Merge pull request #18 from patrickhno/master

FFI / cocoa gem support

Patch by Patrick Hanevold. Thanks!!!