configure: Allow specifying custom CFLAGS for LDAP.