Upgrade to gcc 4.8 for Travis CI. Updated jsoncpp after improving building there as well.