Fix build warnings

Started with over 800 warnings when building the full solution. Down to 20 warnings which are multiple csharp target includes in the project files and problems in the async code. I didn't want to touch the async code since many of the unit tests are currently failing and the project include warnings need some analysis to see what is pulling in what.