Fix a typo in Linux code.
Simplify code for LLVM 3.4.

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