WIP: Improved compatibility with HP-UX,AIX