widl: Replace strdup, malloc and realloc with xstrdup, xmalloc and xrealloc.