fix build errors against GL in OSX
Merge pull request #3 from nickdesaulniers/makeOSX

fix build errors against GL in OSX