Fix warnings treated as errors