Fix build RestorePackages.

Ensure the optimized list of projects references all packages in use.
Fix double downloading of Microsoft.Bcl.Build package.