Fixed Darwin build. Patch by "paul" <ephraim_owns@hotmail.com>. See #556904. svn path=/trunk/; revision=2802