Partly revert "Extract getGLVersion() method to OpenGLHelper" to fix mac build

This partly reverts commit 23c876deeb357b6306712ff0586a819176151c15.

Change-Id: I1008c06ec7562e090627ad3860dd198d8fa89362