Remove unneeded libraries