kernel: Prevent Wundef prevent `Wundef` warnings from occurring due to missing CONFIG_ symbols and __cplusplus. Signed-off-by: Christoph A Schnetzler <Christoph.Schnetzler@husqvarnagroup.com>