Added realloc patch for ARM to compile script