Fixed OSX crash on 10.7.* when window is resized.

See JGLFW for other half of fix!
Merge remote-tracking branch 'origin/master'
Sync GWT emulation to changes in core.