fix libimobiledevice —HEAD build

Closes #30735.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>