Changes and Makefile for OSX, add .gitignore, #define but in util.h