fix find and link gl framework for mac build
improved gl init for macos
fix log about error from sdl
Merge branch 'master' into windows-build