Add build support for Mac OS X in Makefile