Add a LLVM_BUILD_STATIC option to cmake.

Setting it to true causes all executables to be statically linked.
Support LLVM_BUILD_STATIC.