Improve compatibility with OpenIndiana (Solaris).