Rsdt/cython

Compared to previous merge (1e60377) of a related branch, this modifies the build system to make it more robust.