COMPAT: Add NumpyVersion from scipy

We'll see if this works. Will need to rebase #1383 on this.