Add support for Solaris

Fixes #16.