Ok. So I noticed that my "undefined macro" are linked with the config macro configUSE_PORT_OPTIMISED_TASK_SELECTION . Which it set by default in FreeRTOS v9. If I clear it, then compile succeed, otherwise compilation fail.
In FreeRTOS v8, this macro config is even not define in FreeRTOSConfig.h, so consider to be clear by default at compilation time. So this why I never had this error before.
Some information about this config is showed in task.c :
/* If configUSE_PORT_OPTIMISED_TASK_SELECTION is 0 then task selection is performed in a generic way that is not optimised to any particular microcontroller architecture. */
And in the opposite way :
/* If configUSE_PORT_OPTIMISED_TASK_SELECTION is 1 then task selection is
performed in a way that is tailored to the particular microcontroller
architecture being used. */
FreeRTOS reference manual explain it.

So I got my issue and that is. It seem that KL17Z or KL25Z cannot support optimised task.
That macro should be cleared by default for those microcontrollers.