build script fixed: compiler changed to g++.
.gitignore rewrited.