Fix build on SunOS