Cleaned up whitespace

Changed all files with Windows-style line endings to use UNIX-style line endings (i.e. from `\r\n` to `\n`), except for `build.cmd`, since it is a Windows file. Removed trailing whitespace in all files.