json: Fixes for C++ compilers.