[Housekeeping] Fix Directory.Build.targets
for macOS
#1081
Merged
Directory.Build.targets
for macOS
#1081