Removed glutLeaveMainLoop because it's not part of standard GLUT
Added support for compiling under MacOSX
Added Makefile for MacOSX and fix library paths