Fixed compilation with LDAP