Add support for SunOS

Fixes #24.