racket/gui: fix for Mac OS X 10.6

Closes PR 14482