Add multimalloc and pthread_cancel