gearman: fix build on OS X 10.9

Closes #22612.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>