afb-trace: Fix compiling error on old json-c