solaris compile fixes