Fix compilation error on some compilers