Adding some dependency and removing bgrive compilation to avoid depends on libqt4-dev. Adapting to newer versions of libjson-c2-dev library thorugh quilt patches