Log Message: Add two patches taken from "xnet.fi" to fix the build under SunOS 5.11 (and eventually older versions). Problem reported by Tom Hensel in private e-mail.