Fix GCC/Clang build.
Fix libjson GNU_C ifdef guard.