fix build problem with some versions of libjson