Fix compilation for --without-gtk.

Adding AM_CONDITIONAL to not compile GTK modules in that case.