os_* small g_obj_refs cast change