fixes

some Gtk threading fixes
fix to bob-blocking ssl socket stream reader