NamedPipe with optional context

These patches enables NamedPipe to work on a speicified GLib's context.