[z2218] Fix GCC compile. Thanks to LordJZ for input, and NEatElves for pointing

(based on commit [12317] - c45f2bb)

(based on commit [s1852] - c559dfc)