work around missing relative cimport support in cythonize()
merge 0.18 branch back into master