Improving handling of library dependencies

This way we don't look for the extension libraries unless we need them
for the project we're building.