fix build with system libjson