Updated makefile to create build dirs automatically, added directory to .gitignore.