Fix up the ifdefs in Task.c