Fix build on LLVM 3.5

Patch by @crayxt