fixed makefile to work with mac OSX