imported some cleanings in libshardcache to make it build with stricter compilers flags