LLVM currently doesn't build with `-DBUILD_SHARED_LIBS=ON` on Solaris: `libLLVMTargetParser.so` uses `libkstat` functions without linking it. Tested on `amd64-pc-solaris2.11` and `sparcv9-sun-solaris2.11`. Differential Revision: <https://reviews.llvm.org/D158846