[OCCT] 0023243: Adapt OpenGL viewer for using in Cocoa applications on Mac OS X

Cocoa_Window draft
OpenGl_Context and OpenGl_Window - added support for Cocoa OpenGL context
TKV3d - accept Cocoa_Window
Draft version of ViewerInit method for Mac OS X
Added ViewerTest_CocoaEventManagerView
ViewerTest - attach events to Cocoa window
Cocoa_Window - disable autorelease on close
Fix for OpenGl_Context::Init method
Cocoa_Window - convert top-left coordinates to bottom-left
Added selection with rubber band (rubber band drawing still should be implemented)
Fixed OpenGl_Display initialization on Mac OS X
Fixed OpenGl includes

  Cherry-picked from
    http://git.dev.opencascade.org/gitweb/?p=occt.git;a=commit;h=4fe5661
  Conflicts resolved in the following files:
    src/OpenGl/OpenGl_Display.cxx
    src/OpenGl/OpenGl_Display_1.cxx
    src/OpenGl/OpenGl_Workspace_2.cxx
    src/TKService/EXTERNLIB
    src/ViewerTest/ViewerTest_ViewerCommands.cxx
[OCCT] 0023682: Implement Draw_Window with Cocoa framework

Implemented most Draw_Window functions with Cocoa. Still should be implemented: drawing rectangle when zooming, window screenshot function in QAxwd
Added workaround for drawing rectangle when zooming
Added small fixes

  Cherry-picked from
    http://git.dev.opencascade.org/gitweb/?p=occt.git;a=commit;h=67d97f0
  Conflicts resolved in:
    src/Draw/Draw_Window.cxx
    src/Draw/EXTERNLIB
    src/TKDraw/EXTERNLIB
Updated CMake files to support Cocoa on OSX

A flag OCE_OSX_USE_COCOA was added, enabled by default. This
makes OCE use native Cocoa OpenGl implementation as well as
the Tcl/Tk Cocoa provided with OSX/XCode.

This flag should be set to OFF if ever OSX users still need X11 backend.
Modified headers/source files to handle the MACOSX_USE_GLX option
Removed X specific (and unuseful) code causing OSX compilation issues when OCE_OSX_USE_COCOA is enabled.
[clang-warning-fix][extra-token]

In file included from [...]/oce/inc/InterfaceGraphic.hxx:29:
[...]/oce/inc/InterfaceGraphic_Cocoa.hxx:38:8: warning: extra
      tokens at end of #endif directive [-Wextra-tokens]
endif InterfaceGraphic_CocoaHeader
Merge pull request #350 from tpaviot/review/OSX-Cocoa-support

Review/osx cocoa support