Improve compatibility with OpenIndiana OS.