Apply -disable_ldap.patch only when building without ldap