Modified examples to work with libgphoto2 v 2.4