Removing some libraries from linking that is not needed