FreeBSD named-pipes support.

Here are all the fixes for FreeBSD support.