Only build sludge-compiler from devkit In order to get rid of gtk2 but to keep programs not depending on it, remove all the devkit targets except sludge-compiler.
Do not check for gtk-2.0 libs and make up for its CFLAGS by using the one from glib-2.0.