Some build fixes for older libjson