[CMake] Remove deprecated.hh and unused.hh from config.h.

Like 2a4965d90756f8d1a85e4c85bceb186fe4faf569 for autotools.
Cf. FS#1445