so to fix the issue for the latest macosx update nativewindow native code
has to use this api to get the dispatch_get_main_queue and shedule all
window operations to be sent to that queue.
this of course would break compatibility with macosx before 10.10 where this
API do not exist.