Fix for the NumPy C-API deprecation mechanism.