Change detection method for OpenCL versions

- Modify CMakeLists.txt to detect header versions and embed it as
  MAX_OPENCL_VERSION compiler directive
- Modify liboi.cpp to use MAX_OPENCL_VERSION
- Add runtime OpenCL version detection for hardware
- Modify liboi.cpp to use runtime information for
  clCreateFromGLTextureXX
Merge branch 'develop'