added missing line endings (-l) support for windows and solaris