Add compatibility stuff for SunOS.