changed the Makefile to be more compatible with OS X and brew