Make pointer-width calculation work with all LLVM versions