add osx build, revise Makefile