add optional libteam dependency