makefile fix for mac build