Fix segfault when compiling without GTK & embeded