Fix issues with CR/LF and update gitignore for *nix

Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>