Improved config.m4, use pkg-config to find libmemcached