fixed memcache library bugs