Import malloc and realloc modules from gnulib

to enable cross compilation to windows using mingw32
47 files changed