zabbix: fix build on Xcode-only systems

Fixes #31206.