changed osx makefile to solve Undefined symbols for architecture x86_64 error