Fix build on SunOS.