Fixed loads of lint warnings.