Putting back OSX specific GL stuff