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

(based on commit [12317] - c45f2bb)