enabled OpenGL on MacOSX

this PR replaces original https://github.com/Itseez/opencv/pull/2312