COMP: Backward compatibility with numpy 1.4