Clean up cvconfig.h.tmpl

This deletes macros that are always set or always unset or are unused, fixes a few macros that are set via `add_definitions` instead of the config file, and adds a couple of new ones.