Add Support for Solaris and Ubuntu

Readmine: #309, #174 and #172