[build] Updated to conditionally build GTK+2 stuff