Fix some warnings when compiling with gcc.