compilation fixes for ubuntu trusty

Address warnings and failure to compile. libqrencode REQUIRED