Fix up line endings and trailing whitespace