Patches from grawity; bug fix for galed socket binding; failed attempts to make the glib adapter in liboop happy
forgot this file from grawity's repo