Fix portability issue with malloc_and_forget(0)