change GLhandleARB to (void*) in OS X 10.7+ with appropriate typecasts