Fix line endings for Windows.

Closes #308.