Ensure json cflags is included.
Fix some build failures due to missing includes.