fix critical GTK warnings on OS X reported in bug #9162