Makefile: Use new json-c pkgconfig file name

Keeps compatibility with older versions (will be removed in the future).
Closes #364.
Makefile: Use simple variables

TIL recursive variables and $(shell …) slow down `make`.