library: line endings fix, file modes fix.