implement resizeable glView
upate createwindow call from mac