[build] Properly integrate Newtonsoft.Json into the build