Make memcached and node_hash deps optional