MSBuild target: Make it compatible with mono 3.2.5

Seems to be some changes with mono 3.2.5 that break the MSBuild again (TargetFrameworkMoniker), this patch fixes the issue while remaining compatible with previous versions.