Change makefile to make building work on OS X + macports