Fix for proxy generator on .NET.

Adding the reference "Shielded" in CodeDOM works on Mono, but on .NET
results in an exception. Adding ".dll" fixes the problem.