fix makefile to be compatible with both linux && OS X