Fixed compile warnings. Fixed line endings on modified files.