try disabling libcurl to see if it will build without ldap