openldap: fix compilation with GCC14