adding setup script for osx.
making Makefile more general.