remove some warnings when compiling with GCC