fix compiling warnings with GCC