Add support for building on Solaris based OS