Compilation problems with Task constructor.