restore the optimizations flags and updated libshardcache

a bug has been fixed and shardcached now fails smoothly if libshardcache
is not able to bind any address for the configured node/replica