make rllvm compile against llvm 3.5

Added several ifdefs to the code in order to link against llvm 3.5.
For some functions i couldnt figure out how to make them run. Those are completely out-ifdefd.