fix compilation issues on new LLVM