Fixes NumPy C-API deprecation warnings (issue #126)
Tackles #126 on 1.1 branch