fix compilation for cython < 0.17