Modified makefile for osx