some fixes to get memcache workign with unicorn
fixes for memcache