Fix build on Solaris