Fix compiler warnings under gcc.