OSX: expose callback now resembles X11

Moved calling of the expose callback to NSView drawRect to match X11.
Updated events test to load gl functions in the expose callback so
it does not crash when glwtWindowShow causes the first drawRect -> expose
callback to be fired.