remove libraries that are not needed