Portability fix for SunOS