Hans Leidekker (@hans) commented about dlls/wldap32/Makefile.in:
MODULE = wldap32.dll IMPORTLIB = wldap32 IMPORTS = $(LDAP_PE_LIBS) crypt32 secur32 ws2_32 user32 +DELAYIMPORTS = netapi32
It's very likely that ldap_connect() will be called so it would be better to make this a regular import.