Fix portability on Solaris.