CGIV-99 Gearman fixes to play nice with debian

These fixes are here to make the gearman php module work. When trying to install gearman daemon things still don't go to plan