Use unique_ptr as in the latest clang trunk