Fix build errors on OSX 10.9

OSX defines GLhandleARB as void* not unsigned int.
A better fix might be to upgrade all the gl headers to the latest
versions.
Merge pull request #41 from johngirvin/master

Fix build errors on OSX 10.9