added a cocoa entry point to the application to allow for a NSView hosted window