osx function added, cmake config changes
Merge branch 'GLSupporting' of https://github.com/wangyanxing/Demi3D into GLSupporting