fix makefile for linux & osx