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