Correct the Makefile to support nested functions on Mac OS X