Merge pull request #1 from pavel-pimenov/master

Ubuntu fix + .gitignore
OS-dependent conditionals