Modify makefile to work on both Darwin and Ubuntu.