This resolves FTBFS - see issue TDE/tde-packaging-gentoo#299.
Adds detection and optionally a prototype for strlcat and strlcpy for ksysguard and kcheckpass.
It also adds an include <sys/ioctl.h> for the ioctl() prototype in tdm.
The absence of these prototypes results in a build error with some compilers.
Signed-off-by: ormorph <roma251078@mail.ru>
(cherry picked from commit c704aa006b)