gtpython: more cleanups/fixes for Mac OS X ctypes
Merged satta@py