osx: Attempt to fix compile errors on CocoaOpenGLDisplayDriver