Fix Display.getWidth()/getHeight() to return size of NSView instead of
NSWindow, fix a crash on exit