Fix code style and line endings.