BF: set integer type for crossplatform compilation

Found cnp.npy_intp not long error when tried to run nosetests in Win 7 64 bit and fixed it here.