BUG: numpy version checking in ndimage

Should close https://github.com/scipy/scipy/issues/3805 but I haven't tested this with numpy 1.10.x.