bugfix: some more build problems with newer json-c versions

Thanks to Michael Biebl for mentioning the problem.