Workaround for bug in gdk's init code