[shared_ptr] replace error message on g++-4.4 with warning to make tests pass.