json-c link fixes / AC_GNU_SOURCE added