While cross-compiling configure cannot detect a GNU libc compatible malloc or realloc so we have to help by tweaking through config.cache.