Fix includes concerning ref_ptr