build: only set soname on shared object builds