fixing memcache install and adding dependencies