Port to LLVM 3.4

I admit I've never touched LLVM code before, so this was a bit of an adventure. However, it's warning-free, the VM test suite still passes and it can build itself, so I'm being optimistic.