Fix failures for Numpy < 1.7