[C#] Properly locate the reference to System.Core

Make sure System.Core is not added if it is not supported in the
target framework.
Fixes bug 12838 - System.Core.dll should not be referenced
automatically when targeting Mono / .NET 2.0