add SmartOS/Solaris support