Add makefile to project and fix compiler warnings
Update gitignore with build directories
Now with gitignore working