Fix issues with `gt/extended`

The _as_parameter_ / from_param() mechanism from Python's ctype module does not appear to work correctly on Mac OS X.
This commit adjusts C library calls and function prototype definitions do that they explicitly reference pointers to
C objects (rather than their Python wrappers).