Solaris does not provide setenv(), use putenv() instead.
Mark setenv() as deprecated, putenv() is a more portable alternative.