[GLib] Some net library bug fixes.