properly detect gtk2 vs qt to avoid any manual change for linking and cflags