Do you have openldap installed? I believe that is a library within that package.
Or try custom building postgresql without ldap support.