Gets package dependencies from project reference closure
Use rewference closure to correctly remove library files and dependencies