Add m4 macros for checking for perl modules (JSON) Fix #74, #29. Signed-off-by: Nico Williams <nico@twosigma.com>