Fix build on Solaris 10