Added support for compiling on Solaris, hopefully