Build statically when using LLVM.

The LLVM back end does not yet work when building dynamically.