Fixed build errors in task_alloc code.