fix cross-compilation issue fwith Numpy

This fix was given to me by @tsed