compile fixes in managedTask wrapper