dump-ast: fix using --print-types on older libclang versions