shared_ptr class for OS1