added changes so that jsoncpp is amalgamated (no linking) and less reliance on c++11 for to_string, most changes were so that windows binaries could be created with mxe/mingw