Fix tests compilation
Fix make check PROFILE=net_3_5 in Microsoft.Build.Tasks.