Workaround for libgphoto2 API breakage in 2.5.0. Fixes red hat bug #892228

Thanks to jpopelka for debugging and initial patch (PR #200)