Remove unnecesary libraries from files