Updates for .as_ptr() and other std changes