openldap: fix build on darwin
Merge pull request #3917 from lovek323/openldap

openldap: fix build on darwin