Fix lots of warnings.