Fixed Makefile and .cc headers to work on Mac OSX.