convert line ending to unix-style
compilable, but not runnable version