Add gphoto2_port library to link libraries.

Doesn't get picked up automatically on some systems.
Add general Python function callback ability.

Also corrected API calls to version 2.5 (had been using documentation
from 2.3).