Fix generation of llvm ir when compiling from source to binary.