Fix a resizing issue with AWTGLCanvas on OS X