Handling dependencies that are imported libraries (by @stonier, fix #378)