Bug 57. Compatibility fix for BSD; also better error message if hostname cannot be looked up
Bug 57. Compatibility fix for BSD; also better error message if hostname cannot be looked up

rhansen/rpstir,rhansen/rpstir,rhansen/rpstir,rhansen/rpstir,rhansen/rpstir