Fix ufunc support under Numpy 1.6
Merge pull request #721 from pitrou/np16_ufuncs

Fix ufunc support under Numpy 1.6