support Solaris

I've added Solaris support.