Merge libldap_r into libldap
Thanks @quanah for getting the ball rolling on this one.
My approach: define LDAP_R_COMPILE only if building with threads. This ensures things like the API feature info still behave correctly (libldap shouldn't claim to be threadsafe if it isn't) and we still get to delete thr_stub.c.
Edited by Ryan Tandy