Review/osx cocoa support

This brings a solution to issue #333. A flag OCE_OSX_USE_COCOA is created, enabled by default.