Or, source the patch from MacPorts instead: https://trac.macports.org/browser/trunk/dports/devel/jsoncpp/Portfile