fix compilation on some compilers