Add support for SunOS (tested on SmartOS)