Make shared_ptr work with Log.