Fix up many libraries
Rewrite `readDeps` so that modules are never read more than once