Use LooseVersion for checking cython version (issue 298)

Fixes #298.