Fixed makefile flags for Mac