main/zabbix: improve libc detection for selective patching