Convert newlines to UNIX-style

Fixes #586
Merge pull request #587 from jaredhoberock/issue-586

Convert newlines to UNIX-style
Merge pull request #588 from thrust/1.8.0

1.8.0