Definition necessary to compile in MAC OS
Corrections on makefile and source code to compile on mac OS X