added #define LDAP_DEPRECATED in order to use old ldap_init() function