dependency: Move libraries generation from cmake to Dependency.
dependency: Add autotools dependency generator.
Fix some dependencies implementation.