new makefile mac compatibility