Updated nuget references and upgraded to .net 4