Library: add full GLib/GTK support