Make OSXGLView interface use correct type

Fix for compilation issue under OS X Yosemite.