Build LLVMgold.so on FreeBSD using cmake.
Patch by Stephen Checkoway.