Fix a failure to add terminfo to BUILD_DIRS on a darwin -> iOS build