Fix NREs in DistantObject.

Also: Remove 'using System.Threading.Tasks', since that doesn't work with .NET3.5