Tell SWIG that gpointer is really void *.