Merged changes from trunk: added intrusive_ref_counter.

[SVN r85609]