Revert "Revert "Add configuration option to choose EOL mode (Unix / Windows).""

This reverts commit 7defbe773c82ad2fb2a0f2ed97e6f046f6db3a79.