Improved gtk threading: added with-* macros, functions to call gtk-main