Fix warnings found by gcc.