ENH: Fix teem build issues.