Got the JSON build working properly with a few fixes.

Next up is the qt fabric part of the build. The question is whether or not
it belongs in this project. Ideally, the QT stuff would be another
project, and use this project as a submodule. But the git submodule stuff
is a real pain in the butt.