fixed a condition
allow to build the utils from the main srcdir

and to build a dynamically-linked version of shardcachec