Fix linking in libjson for FreeBSD