Fix build configuration for json library dep.