backport fix for cython 0.19