Fix async incompatibilities in .net 4.0.