added nuget packages, fixed a compiler error for 3.5