Enable JSON_MEMORY_MANAGE
clean json deps with make clean
Adapt idler code from Stanford sample, for OSX app