fix makefile for osx and etc