made GTK optional using a cmake option and ifdefs