Add JSON support as optional in autotools