Improved portability for SunOS