Fix building under Solaris.