Improved support for Plan 9, older SunOS, and AIX.