fix libmemcached & libgd3 deps