Improve handling of dependencies

1. Mix dependencies can be either two or three element tuples
2. Do not include lingex itself