Add somes fixes to the Kaleidoscope tutorial

I'm going through the Kaleidoscope tutorial and I've found some typos / things outdated in the code. Here are my fixes. I might add changes in the next few days because I've studied chapter 6 yet. So don't merge this PR right away but you can start reviewing it from now.