darwin: fix ios build, don't require ApplicationServices
build: only set soname on shared object builds