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.