Before we wade into this morass, a question needs to be answered.
Is this worth doing? My opinion so far is that, no, it isn't.
If it's worth doing, we should probably lift from sendmail's code
that initializes the 'w' class. sendmail is ported to a bunch of
platforms already, so I think a lot of effort would be saved