removes unused libraries from part3mapper