This is necessary for CheckLinkerFlag with CMake 3.18.
Add includes for other checks that are used in TDEMacros.
The initialization of the TDEMacros moved to the beginning.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 2e90c1972e)