engine: fix compilation with gcc