Added IPv6 support for Memcached

Fixes #1140