Simplify code for LLVM 3.4.

Introduces a compability function instead of a #if/#endif cascade.