Added compatibility with Gearman 0.5