Added realloc implementation on Linux.