remove most external libraries from lib/