Set LD_LIBRARY_PATH in the json-test makefile. This should solve bug 823...

...322.

I'm not sure where that makefile comes from. If something generates it, we should fix this at the source.