adds all libraries and builds required dir structure