libldap and libldap_r in the same process