The toposort module was not imported relative to the package and this
leads to import errors in some circumstances. Fixes #24.