Enable building with libgphoto2 version 2.4.

The installed version of gphoto2 is detected in setup.py and appropriate
pre-processor defines allow conditional code in the interface definition
files.
Some of the examples work with version 2.4, but not all.