Added OSX support and static linking

Include files for common GL headers are different on mac.  The makefile
now support linux and OSX.  Changed the dynamicly linked library
generation to a static library to avoid issues with dependant files.