I was able to build a working extension module under 2.4 / cygwin-mingw by declaring the following:
short ** _imp___ctype = 0; ( I put it at the top of my swig .i file ). This potentially dangerous tip is from: http://www.nabble.com/msvcr71-t336430.html -- http://mail.python.org/mailman/listinfo/python-list