Fix CMake build

Fix the CMake build by adding missing source files to the CMake files. This also includes a tentative fix for a linking error that occurs because the AllFunctions option is defined in the Transforms library but used in the IR library.

I license these and all following changes to this repository under the LLVM license. Feel free to include my changes in upstream patches in any form not violating the license.