Fix compiler warnings reported by gcc v4.2.4.