helper: fix build with mingw gcc 12.1.0