Improve feature gating.

Enables using Vim in the terminal even if some features are not
available.