[packaging] Fix build with json-c 0.12