Fix segfault problem with recent numpy.pxd/Python 2.4 patch