Fix a compile bug with numpy 1.5