fixed compilation with newer json lib