Updated some required packages for Debian build

With newer version of Debian (Jessie) or Ubuntu (Trusty), the packages
libjson0{,-dev} are transitional packages. Prefer their replacements if
they're available.
Merge pull request #713 from qnet-herwin/debian_json_packages

Updated some required packages for Debian build