[CMake] llvm_add_library: Add dependencies also to objlibs as workaround of CMake issue 14747.

http://www.cmake.org/Bug/view.php?id=14747
[CMake] libLTO: Use (SHARED|STATIC) to build both shared LTO and LTO_static.