Fix snapshotting with libraries in .Library but not private library (i.e. recommended)