Bug fix: gphoto2 v2.4 has different log callback.

This was causing a seg fault on all the example scripts when used with
libgphoto2 v2.4!