elasticsearch: fix darwin build