Fixed a load of tiny warnings.