json_spirit dylib generation + static

Closes #24260.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>