Actually use the pool we alloced
Define LDAP_DEPRECATED outside of autoconf (and before including ldap.h)