fixed bugs in jsoncpp amalgam