This is a patch for AIX, under which malloc(0) returns
NULL and by that giving false out of memory messages.
The patch should also work on other systems that has
this problem with malloc. It uses the AC_FUNC_MALLOC
macro and defines malloc as rpl_malloc, which is
implemented in the added malloc_replacements.c file.