remove unneeded linked libraries