Properly manage dependencies when creating nuget packages