SunOS support
Merge pull request #1242 from oxtopus/SunOS-support

SunOS/Solaris support