Fix compilation with libclang trunk
Fix warnings