GTK support on OS X

This make the GTK UI build and link on OS X.