Updated build system from the official repository. added a couple dirs to .gitignore
added a couple of extra files