Added fix so that LDAP libraries are found.