fixes compilation of ui/gtk.c

It seems a #if directive was missing. I used the "unknown reference" errors to find the right place for this directive and now the make works again.