fixed eol back to unix style. fixed some compile errors introduced in last windows port pass.