Fix memcached dependent build for gmetad.