Fixed bug regarding dependencies of dependencies
Fixed bug where 'lib' prefix was lost on Mac