update makefile.osx to prevent some compiling errors under osx 10.9