Fix line ending issues.

Fix bug where includes weren't being parsed on Windows if the file had unix line endings.

Preserve original line endings of the file.