Add sol support

It passed testing on Solaris.