extract required libs for memcache