Updated makefile to work on mac os x