fix solaris build