Fix FreeBSD in a way that doesn't break other UNIX.

Not sure if you're interested in runsit patches, or if this is the right forum for sending patches.  If not,  point me to the right forum.