Link against system libraries required by LLVM.
Explicitly map external functions in the LLVM IR to addresses.

This is needed to make the JIT work on Windows since LLVM won't
automatically resolve external symbols on this platform.