added makefile support for mac