ac/llvm: handle static/shared llvm init separately